﻿namespace FinalPointSet.Model.Asset
{
    /// <summary>
    /// 文本资源键值对
    /// </summary>
    public class ObjectPair<T>
    {
        /// <summary>
        /// 文本名称
        /// </summary>
        public string Name { get; set; } = string.Empty;
        /// <summary>
        /// 文本值
        /// </summary>
        public T? Value { get; set; }
        public ObjectPair() { }
        public ObjectPair(string name, T value)
        {
            Name = name;
            Value = value;
        }
        public override string? ToString()
        {
            return $"Name={Name},Value={Value}";
        }
    }
}